package com.jd.platform.gobrs.worker.datasource;

import com.jd.platform.gobrs.common.model.KeyTraffic;
import com.jd.platform.gobrs.worker.keylistener.AutoKeyListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.LongAdder;

/**
 * @program: gobrs
 * @ClassName AutoDataController
 * @description:
 * @author: sizegang
 * @create: 2022-01-10 23:11
 * @Version 1.0
 **/
@RestController
@RequestMapping("autoKeyData")
public class AutoKeyDataController {

    @Autowired
    private AutoKeyListener autoKeyListener;

    @RequestMapping("pullAutoKey")
    public Map<String, Map<String, KeyTraffic>> pullAutoKey() {
//        return autoKeyListener.autoKeyCalculateBuffer();
        return null;
    }


}
